powered by
Counting the number of 1-bits in the base 2 expression of vli (Very Large Integer) objects.
count1bits(x)# S3 method for default count1bits(x)# S3 method for numeric count1bits(x)# S3 method for vli count1bits(x)
# S3 method for default count1bits(x)
# S3 method for numeric count1bits(x)
# S3 method for vli count1bits(x)
integer
object of class vli
Javier Leiva Cuadrado
x <- as.vli("69158247560284795612") count1bits(x)
Run the code above in your browser using DataLab